<template>
	<view>
		<button @click="handleChild">触发子父通信</button>
		<button @click="handleBus">触发bus通信</button>
	</view>
</template>

<script>
	import {bus} from '@/bus/bus.js'
	export default {
		name:"test-comp",
		data() {
			return {
				
			};
		},
		methods: {
			handleChild() {
				this.$emit('changenum',10)
			},
			handleBus(){
				bus.$emit('changecount',11)
			}
		},
	}
</script>

<style lang="scss">

</style>